Xbasic
CREATE_SHADOW Function
Syntax
V CREATE_SHADOW(C NewAdbFilename,C OriginalAdbFilename [,L open_and_repopulate])
Arguments
- NewAdbFilename
The name of the shadow database to create.
- OriginalAdbFilename
The name of the master database from which the shadow is created.
- open_and_repopulate
Logical. Optional, .T. = Open the shadow database at the end of the process, .F. = Do not open the shadow database.
Description
Creates a shadow of an ADB file & opens it.
CREATE_SHADOW() creates a shadow database (i.e. a Network Optimized database). This is the same as using the Tools > Network Optimize... command. A Network Optimized database stores the data dictionaries (i.e. the forms, reports, scripts, etc.) on the user's local hard drive, while keeping the data on the shared network hard drive.
Packing or updating the indexes of a table in a shadow database actually performs the operation on the master table.
Limitations
Desktop applications only.
See Also